home *** CD-ROM | disk | FTP | other *** search
Text File | 1989-10-20 | 1.5 KB | 38 lines | [TEXT/GEOL] |
- Item 0796281 19-Oct-89 11:50
-
- From: SHEBANOW1 Shebanow, Andrew
-
- To: D4280 IDS, Robert Pappas, AST
- MACAPP.TECH$ MACAPP Tech
-
- Sub: MacApp & C++
-
- Well, I don't have the source code for the Bird example, but I can comment on
- some of the warnings.
-
- File "HD:MacApp:Interfaces:CIncludes:UMacAppUtilities.h"; line 388 # warning:
- __GetA0 is reserved (starts with __[A-Z]); compile could fail!
-
- This warning is new for b1 - earlier versions of C++ didn't give it. What
- happends is that the compiler prepends __ to some of its generated variable and
- function names. When you define a symbol like this, CFront is warning you that
- a symbol name that it generates MAY conflict with your symbol. The __GetA0
- functions in MacApp will probably be renamed for 2.0 to get around this
- problem.
-
- File "UBird.h"; line 63 # warning: TBirdView::Draw() hides virtual
- TView::Draw()
-
- I can't say for sure without the sample source, but this one is probably caused
- by not having an EXACT match between TView::Draw and TBirdView::Draw interfaces
- (parameter types, return value). If they don't match exactly, CFront thinks
- that you are overloading the Draw method (as opposed to overriding it). The
- warning comes because overloaded methods hide methods with the same name in the
- superclass. If you make the parameters match, everything should work, without
- warnings.
-
- Andy Shebanow
- MacDTS
- Apple Computer - Where Everyone Is A Mover & Shaker
-
-